package com.wlz.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wlz
 * @date 2022-09-29  9:46 下午
 */
@Slf4j
@RestController
@RequestMapping("/api")
public class DemoController {


    @RequestMapping("/demo")
    public String demo(@RequestParam(value = "name")String name) {
        log.info("demo: {}", name);
        return "hello " + name;
    }
}
